import { axios } from '@/utils/request'
let preUrl = 'meeting'
let visitorPre = 'visitor'
export const meetConfirm = data => {
  return axios({ url: `${preUrl}/meeting/applets/confirm`, method: 'post', data })
}

export const getApplyInfo = params => {
  return axios({ url: `${preUrl}/meeting/apply/info`, method: 'get', params })
}

export const createQRCode = data => {
  return axios({ url: `${preUrl}/meeting/applets/createQRCode`, method: 'post', data, responseType: 'blob' })
}

export const createVisitorQR = data => {
  return axios({ url: `${visitorPre}/application/WeChat/createQRCode/${data}`, method: 'post', responseType: 'blob' })
}
